Lua/Events/Client/ResolutionChange
From JC2-MP Documentation
< Lua
Name | ResolutionChange |
---|---|
Arguments (in table) | Vector2 size |
Return option | None |
Description
Fired when the game's resolution changes. Render.Size is the previous resolution while in this event.
Examples
Foo = function(args) print("Resolution changed from "..tostring(Render.Size).." to "..tostring(args.size)) end Events:Subscribe("ResolutionChange", Foo)